package com.home_school_platform.service;


import com.home_school_platform.entity.pojo.Achievement;
import com.home_school_platform.entity.pojo.AchievementTitle;
import com.home_school_platform.result.Result;

/**
 * 成绩的业务逻辑层
 * @author 卓汉杰
 * */
public interface AchievementService {

    /**
     * 添加一个成绩标题
     * */
    Result insertAchievementTitle(AchievementTitle achievementTitle);

    /**
     * 根据班级id查询所有成绩标题
     * */
    Result listAchievementTitle(Integer teamId);

    /**
     * 添加一条学生的成绩
     * */
    Result insertAchievement(Achievement achievement);

    /**
     * 修改学生成绩
     * */
    Result updateAchievement(Achievement achievement);

    /**
     * 删除一条成绩
     * */
    Result deleteAchievement(Integer studentId);

    /**
     * 根据学生查看成绩
     * */
    Result getAchievementByStudentId(Integer student);


    /**
     * 根据班级查询成绩
     * */
    Result getAchievementByTeamId(Integer teamId);



}
